<?php
/**
 * Created by PhpStorm.
 * User: steven
 * Date: 2016/4/18
 * Time: 23:22
 */

defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <title><?php echo $title ?></title>
    <base href="<?php  echo base_url();?>"/>

    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

    <!-- 可选的Bootstrap主题文件（一般不用引入） -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <link href="resources/css/style.css" rel="stylesheet" />
    <link href="resources/css/iSlider.css" rel="stylesheet" />
<!--    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>-->
    <script type="text/javascript" src="resources/js/iSlider.js"></script>
    <script type="text/javascript" src="resources/js/iSlider.animate.js"></script>

</head>
<body>
<div style="display: none" id="access_token_div"><?php
    if (!empty($accesstoken)){
        echo $accesstoken;
    }
    ?></div>

<div class="logo"><img src="resources/image/jianggan.png"  width="100%" height="auto"/> </div>
<script>
    $(document).ready(function() {
//        var current_url=window.location;
//        //    alert(window.location);
//        var accesstoken=$('#access_token_div').html();
//        var api_key='wx5672506691fea394';
//        var scope='snsapi_userinfo';
//        if(accesstoken==''){
//            get_access_token(current_url);
//        }
//
//        function get_access_token(url){
//            var url1="https://open.weixin.qq.com/connect/oauth2/authorize?appid=";
//            url1+=api_key;
//            url1+="&redirect_uri=";
//            url1+=url;
//            url1+="&response_type=code&scope=";
//            url1+=scope;
//            url1+="&state=123#wechat_redirect";
//            location.href=url1;
//        }
// put all your jQuery goodness in here.
    });

</script>